package com.example.service;

import com.example.entity.Course;
import com.example.entity.example.CourseExample;

import java.util.List;

public interface CourseService {
    void add(Course course);

    Course getById(String id);

    void updateById(Course course);

    void updateSelectiveById(Course course);

    void removeById(String id);

    List<Course> getByExampleWithLimit(CourseExample example, Integer page, Integer limit);

    long getCountByExample(CourseExample example);

    void selection(String courseId, String studentId);

    void unSelection(String courseId, String studentId);

    List<Course> getByTeacherId(String teacherId);
}
